package com.yang;

import com.yang.route.AccessFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * Hello world!
 *
 */

@SpringBootApplication
@EnableDiscoveryClient
@EnableZuulProxy
public class ServiceGatewayApplication
{

    @Bean
    public AccessFilter accessFilter(){
        return new AccessFilter();
    }

    public static void main( String[] args )
    {
        SpringApplication.run(ServiceGatewayApplication.class, args);
    }

}
